# !/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :rlock_tset.py
# @Time      :2025/7/6 14:51
# @Author    :aiyimu

import threading

lock = threading.RLock()

def func1():
    with lock:
        func2()

def func2():
    with lock:
        print("func2执行")

func1()